package com.yourblog.jerry_springboot.controller;

import com.yourblog.jerry_springboot.service.UserService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

/**
 * @ClassName UserController
 * @Author WYQ
 * @Date 2020-10-20 10:56
 * @Version1.0
 **/
@RestController
@RequestMapping("user")
@CrossOrigin
public class UserController {
    @Resource
    private UserService userService;

    @RequestMapping("list")
    public Object list(){
        return userService.list();
    }
}
